package com.geek.config.microprofile.source.value;

import org.eclipse.microprofile.config.ConfigValue;

public class DefaultValue implements ConfigValue {
  private final String name;

  private final String value;

  private final String rawValue;

  private final String sourceName;

  private final int sourceOrdinal;

  public DefaultValue(final String name, final String value, final String rawValue, final String sourceName, final int sourceOrdinal) {
    this.name = name;
    this.value = value;
    this.rawValue = rawValue;
    this.sourceName = sourceName;
    this.sourceOrdinal = sourceOrdinal;
  }

  @Override
  public String getName() {
    return this.name;
  }

  @Override
  public String getValue() {
    return this.value;
  }

  @Override
  public String getRawValue() {
    return this.rawValue;
  }

  @Override
  public String getSourceName() {
    return this.sourceName;
  }

  @Override
  public int getSourceOrdinal() {
    return this.sourceOrdinal;
  }
}
